﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Data;
using DBManager.Admin;

namespace BO.Admin
{
    public class NewsBO
    {
        #region news
        public static DataTable getAllZoneCache()
        {
            return NewDAL.getAllZone();
        }
        public static DataTable getAllZoneByParentIdCache(string ParentId)
        {
            return NewDAL.getAllZoneByParentId(ParentId);
        }
        public static DataTable getInfomationZoneByIDCache(string ZoneId)
        {
            return NewDAL.getInfomationZoneByID(ZoneId);
        }
        public static string addZoneBO(string title, string url, string ParentId, string status)
        {
            return NewDAL.addZone(title, url, ParentId, status);
        }
        public static string editZoneBO(string title, string url, string ParentId, string status, string zoneid)
        {
            return NewDAL.editZone(title, url, ParentId, status, zoneid);
        }
        //news
        public static string addNewsBO(string ZoneId, string ZoneIdOther, string Title, string Sapo, string Avatar, string Author, string IsFocus, string Url, string Tags, string status, string longContent)
        { 
            return NewDAL.addNews( ZoneId,  ZoneIdOther,  Title,  Sapo,  Avatar,  Author, IsFocus, Url,Tags,status,longContent);
        }
        public static DataTable getAllNewsBO(string sFind, string sZoneID)
        {
            return NewDAL.getAllNews(sFind, sZoneID);
        }
        public static DataTable GetInfomationNewsBO(string newsID)
        {
            return NewDAL.GetInfomationNews(newsID);
        }
        public static string EditNewsBO(string ID, string ZoneId, string ZoneIdOther, string Title, string Sapo, string Avatar, string Author, string IsFocus, string Url, string Tags, string status, string longContent)
        { 
            return NewDAL.EditNews( ID, ZoneId,  ZoneIdOther,  Title,  Sapo,  Avatar,  Author,  IsFocus,  Url,  Tags,  status,  longContent);
        }
        #endregion
    }
}
